/**
 * Created by IntelliJ IDEA
 *
 * @author zhengjie
 * @Date:2022/1/8 11:18
 * @Version 1.0
 */
package com.zj.ssm.service.impl;

import com.zj.ssm.mapper.RoleMapper;
import com.zj.ssm.pojo.domain.Role;
import com.zj.ssm.result.AjaxResult;
import com.zj.ssm.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    public RoleMapper roleMapper;

    @Override
    public AjaxResult list() {
        List<Role> roles = roleMapper.listAll();
        return AjaxResult.success(roles);
    }
}
